package net.mimai.vultrue.bus.excel.reader.parser;

import net.mimai.vultrue.bus.excel.reader.handler.IExcelParseHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.InputStream;

@Component
public class ExcelClassicsParser<T> extends AbstractExcelParser<T> {

    @Autowired(required = false)
    private IExcelParseHandler<T> excelParseHandler;

    @Override
    protected IExcelParseHandler<T> createHandler(InputStream excelInputStream) {
        return this.excelParseHandler;
    }
}
